package engine.systems.update.timer
{
	import ash.core.Entity;
	
	import org.osflash.signals.Signal;

	public class TimerData
	{
		public var triggered:Signal = new Signal(Entity);
		
		public var name:String;
		
		public var paused:Boolean = false;
		
		public var time:Number = 0;
		public var delay:Number;
		public var wait:Number;
		
		public var count:int;
		public var counter:int = 0;
		
		public function TimerData(delay:Number = 0, wait:Number = 1, count:int = 1, name:String = null)
		{
			this.delay 	= delay;
			this.wait 	= wait;
			this.count 	= count;
			this.name 	= name;
		}
		
		public function destroy():void
		{
			this.triggered.removeAll();
			this.triggered = null;
		}
	}
}